#ifndef _NET_NETADDRESS_H_
#define _NET_NETADDRESS_H_

#include <string>

#include "common/common.h"

namespace net {

class NetAddress {
	protected:
		uint32_t ip;
		uint32_t port;
		std::string address;

	public:
		NetAddress();
		NetAddress(uint32_t ip, uint32_t port);
		NetAddress(std::string ip, uint32_t port);

	public:
		uint32_t GetIp();
		std::string& GetSIp();

		uint32_t GetPort();
		uint32_t GetNetPort();
};

}
#endif
